import $http from '@/utils/httpRequest'

export function list(params) {
  return $http({
    url: '/sys/role/list',
    method: 'get',
    params: $http.adornParams(params)
  })
}

export function remove(data) {
  return $http({
    url: '/sys/role/delete',
    method: 'post',
    data: $http.adornData(data)
  })
}

export function select(params) {
  return $http({
    url: '/sys/role/select',
    method: 'get',
    params: $http.adornParams(params)
  })
}

export function getById(id) {
  return $http({
    url: `/sys/role/info/${id}`,
    method: 'get',
    params: $http.adornParams()
  })
}
